package logic;

import ui.AdminCenterPanel;
import ui.AdminCreateUser;
import ui.AdminPanel;
import ui.AdminUI;
import ui.GlobalLogin;
import ui.GlobalLogoutPanel;
import ui.GlobalScreen;
import ui.UserUI;
import data.Connect;

public class ACMethodAdmin {

	AdminUI adminui;
	AdminCenterPanel admincenterPanel;
	AdminCreateUser admincreateuser;

	public ACMethodAdmin(AdminUI adminui, AdminCenterPanel admincenterPanel) {

		this.admincenterPanel = admincenterPanel;
		this.adminui = adminui;
		this.admincreateuser = admincenterPanel.adminCreateUser;

	}

	public void create() {
		admincenterPanel.show("admincreateuser");

	}

	public void AdminHome() {
		System.out.println("Returned to homescreen");
	}

	public void CreateUser() {
		System.out.println("New User Created");
		System.out.println("Full name: "
				+ admincreateuser.getFrmFirstName().getText() + " "
				+ admincreateuser.getFrmLastName().getText());
		System.out.println("Email: " + admincreateuser.getFrmEmail().getText());
		System.out.println("Phone Number: "
				+ admincreateuser.getFrmPhone().getText());
		System.out.println("Enrollment Year:"
				+ admincreateuser.getFrmYear().getText());

	}

	public void exchange() {
		admincenterPanel.show("adminexchangerate");
	}
}
